package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.model.system.Dep;

@Entity
@Table(name = "DATA_WUZI_FENTAN")
public class FenTan implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5296116289314296654L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="DEP_ID")
	private Dep dep;
	
	@Column
	private float percent;
	
	@Column
	private Date zengJiaRQ;
	
	@Column
	private Date jianShaoRQ;
	
	@Column
	private int fenTanZT;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public Dep getDep() {
		return dep;
	}

	public void setDep(Dep dep) {
		this.dep = dep;
	}

	public float getPercent() {
		return percent;
	}

	public void setPercent(float percent) {
		this.percent = percent;
	}

	public Date getZengJiaRQ() {
		return zengJiaRQ;
	}

	public void setZengJiaRQ(Date zengJiaRQ) {
		this.zengJiaRQ = zengJiaRQ;
	}

	public Date getJianShaoRQ() {
		return jianShaoRQ;
	}

	public void setJianShaoRQ(Date jianShaoRQ) {
		this.jianShaoRQ = jianShaoRQ;
	}

	public int getFenTanZT() {
		return fenTanZT;
	}

	public void setFenTanZT(int fenTanZT) {
		this.fenTanZT = fenTanZT;
	}

	public FenTan(String id, WuZi wuZi, Dep dep, float percent, Date zengJiaRQ,
			Date jianShaoRQ, int fenTanZT) {
		super();
		this.id = id;
		this.wuZi = wuZi;
		this.dep = dep;
		this.percent = percent;
		this.zengJiaRQ = zengJiaRQ;
		this.jianShaoRQ = jianShaoRQ;
		this.fenTanZT = fenTanZT;
	}

	public FenTan() {
		super();
	}	

}
